<?php

namespace common\models\feedback;

use Yii;

/**
 * This is the model class for table "{{%feedback_opinion}}".
 *
 * @property int $id
 * @property int $feedback_id 反馈意见ID
 * @property int $admin_id 受理人ID
 * @property string $mark 处理备注
 * @property int $status 状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class FeedbackOpinion extends \common\db\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%feedback_opinion}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['feedback_id', 'admin_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['mark'], 'required'],
            [['mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'feedback_id' => '反馈意见ID',
            'admin_id' => '受理人ID',
            'mark' => '处理备注',
            'status' => '状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
